home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat1 / nslookup.z / nslookup
Encoding:
Text File  |  1998-10-20  |  17.3 KB  |  394 lines

  1.  
  2.  
  3.  
  4. NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))                                                      NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      nslookup - query Internet name servers interactively
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      nnnnssssllllooooooookkkkuuuupppp [ -_o_p_t_i_o_n ... ] [ _h_o_s_t-_t_o-_f_i_n_d | - [ _s_e_r_v_e_r ]]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _N_s_l_o_o_k_u_p is a program to query Internet domain name servers. Nslookup has
  16.      two modes: interactive and non-interactive.  Interactive mode allows the
  17.      user to query name servers for information about various hosts and
  18.      domains or to print a list of hosts in a domain. Non-interactive mode is
  19.      used to print just the name and requested information for a host or
  20.      domain.
  21.  
  22.  
  23. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  24.      Interactive mode is entered in the following cases:
  25.  
  26.      a)  when no arguments are given (the default name server will be used),
  27.  
  28.      b)  when the first argument is a hyphen (-) and the second argument is
  29.          the host name or Internet address of a name server.
  30.  
  31.      Non-interactive mode is used when the name or Internet address of the
  32.      host to be looked up is given as the first argument. The optional second
  33.      argument specifies the host name or address of a name server.
  34.  
  35.      The options listed under the ``set'' command below can be specified in
  36.      the .nslookuprc file in the user's home directory if they are listed one
  37.      per line. Options can also be specified on the command line if they
  38.      precede the arguments and are prefixed with a hyphen. For example, to
  39.      change the default query type to host information, and the initial
  40.      timeout to 10 seconds, type:
  41.           nslookup -query=hinfo  -timeout=10
  42. IIIINNNNTTTTEEEERRRRAAAACCCCTTTTIIIIVVVVEEEE CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS
  43.      Commands may be interrupted at any time by typing a control-C.  To exit,
  44.      type a control-D (EOF) or type exit.  The command line length must be
  45.      less than 256 characters.  To treat a built-in command as a host name,
  46.      precede it with an escape character (\). NNNN....BBBB.... an unrecognized command
  47.      will be interpreted as a host name.
  48.      _h_o_s_t [_s_e_r_v_e_r]
  49.           Look up information for _h_o_s_t using the current default server or
  50.           using _s_e_r_v_e_r if specified.  If _h_o_s_t is an Internet address and the
  51.           query type is A or PTR, the name of the host is returned.  If _h_o_s_t
  52.           is a name and does not have a trailing period, the default domain
  53.           name is appended to the name. (This behavior depends on the state of
  54.           the sssseeeetttt options ddddoooommmmaaaaiiiinnnn, ssssrrrrcccchhhhlllliiiisssstttt, ddddeeeeffffnnnnaaaammmmeeee, and sssseeeeaaaarrrrcccchhhh).  To look up
  55.           a host not in the current domain, append a period to the name.
  56.  
  57.  
  58.                                                                         PPPPaaaaggggeeee 1111
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))                                                      NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))
  66.  
  67.  
  68.  
  69.      sssseeeerrrrvvvveeeerrrr _d_o_m_a_i_n
  70.      llllsssseeeerrrrvvvveeeerrrr _d_o_m_a_i_n
  71.           Change the default server to _d_o_m_a_i_n. LLLLsssseeeerrrrvvvveeeerrrr uses the initial server
  72.           to look up information about _d_o_m_a_i_n while sssseeeerrrrvvvveeeerrrr uses the current
  73.           default server. If an authoritative answer can't be found, the names
  74.           of servers that might have the answer are returned.
  75.  
  76.  
  77.      rrrrooooooootttt Changes the default server to the server for the root of the domain
  78.           name space.  Currently, the host ns.internic.net is used.  (This
  79.           command is a synonym for llllsssseeeerrrrvvvveeeerrrr nnnnssss....iiiinnnntttteeeerrrrnnnniiiicccc....nnnneeeetttt....)  The name of the
  80.           root server can be changed with the sssseeeetttt rrrrooooooootttt command.
  81.  
  82.  
  83.      ffffiiiinnnnggggeeeerrrr [_n_a_m_e] [>>>> _f_i_l_e_n_a_m_e]
  84.      ffffiiiinnnnggggeeeerrrr [_n_a_m_e] [>>>>>>>> _f_i_l_e_n_a_m_e]
  85.           Connects with the finger server on the current host. The current
  86.           host is defined when a previous lookup for a host was successful and
  87.           returned address information (see the sssseeeetttt qqqquuuueeeerrrryyyyttttyyyyppppeeee====AAAA command).
  88.           _N_a_m_e is optional. >>>> and >>>>>>>> can be used to redirect output in the
  89.           usual manner.
  90.  
  91.  
  92.      llllssss [_o_p_t_i_o_n] _d_o_m_a_i_n [>>>> _f_i_l_e_n_a_m_e]
  93.      llllssss [_o_p_t_i_o_n] _d_o_m_a_i_n [>>>>>>>> _f_i_l_e_n_a_m_e]
  94.           List the information available for _d_o_m_a_i_n, optionally creating or
  95.           appending to _f_i_l_e_n_a_m_e.  The default output contains host names and
  96.           their Internet addresses. _O_p_t_i_o_n can be one of the following:
  97.  
  98.           ----tttt _q_u_e_r_y_t_y_p_e
  99.               lists all records of the specified type (see _q_u_e_r_y_t_y_p_e below).
  100.  
  101.           ----aaaa  lists aliases of hosts in the domain. synonym for ----tttt  CCCCNNNNAAAAMMMMEEEE.
  102.  
  103.           ----dddd  lists all records for the domain.  synonym for ----tttt  AAAANNNNYYYY.
  104.  
  105.           ----hhhh  lists CPU and operating system information for the domain.
  106.               synonym for ----tttt  HHHHIIIINNNNFFFFOOOO.
  107.  
  108.           ----ssss  lists well-known services of hosts in the domain.  synonym for
  109.               ----tttt  WWWWKKKKSSSS.
  110.  
  111.           When output is directed to a file, hash marks are printed for every
  112.           50 records received from the server.
  113.  
  114.  
  115.      vvvviiiieeeewwww _f_i_l_e_n_a_m_e
  116.           Sorts and lists the output of previous llllssss command(s) with _m_o_r_e(1).
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.                                                                         PPPPaaaaggggeeee 2222
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131. NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))                                                      NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))
  132.  
  133.  
  134.  
  135.      hhhheeeellllpppp
  136.  
  137.      ????    Prints a brief summary of commands.
  138.  
  139.  
  140.      eeeexxxxiiiitttt Exits the program.
  141.  
  142.  
  143.      sssseeeetttt _k_e_y_w_o_r_d[=_v_a_l_u_e]
  144.           This command is used to change state information that affects the
  145.           lookups.  Valid keywords are:
  146.  
  147.           aaaallllllll  Prints the current values of the frequently-used options to
  148.                sssseeeetttt.  Information about the  current default server and host is
  149.                also printed.
  150.  
  151.           ccccllllaaaassssssss====_v_a_l_u_e
  152.                Change the query class to one of:
  153.  
  154.                IN        the Internet class.
  155.  
  156.                CHAOS     the Chaos class.
  157.  
  158.                HESIOD    the MIT Athena Hesiod class.
  159.  
  160.                ANY       wildcard (any of the above).
  161.  
  162.                The class specifies the protocol group of the information.
  163.                (Default = IN, abbreviation = cl)
  164.  
  165.           [[[[nnnnoooo]]]]ddddeeeebbbbuuuugggg
  166.                Turn debugging mode on. A lot more information is printed about
  167.                the packet sent to the server and the resulting answer.
  168.                (Default = nodebug, abbreviation = [no]deb)
  169.  
  170.           [[[[nnnnoooo]]]]dddd2222
  171.                Turn exhaustive debugging mode on.  Essentially all fields of
  172.                every packet are printed.
  173.                (Default = nod2)
  174.  
  175.           ddddoooommmmaaaaiiiinnnn====_n_a_m_e
  176.                Change the default domain name to _n_a_m_e. The default domain name
  177.                is appended to a lookup request depending on the state of the
  178.                ddddeeeeffffnnnnaaaammmmeeee and sssseeeeaaaarrrrcccchhhh options.  The domain search list contains
  179.                the parents of the default domain if it has at least two
  180.                components in its name. For example, if the default domain is
  181.                CC.Berkeley.EDU, the search list is CC.Berkeley.EDU and
  182.                Berkeley.EDU.  Use the sssseeeetttt ssssrrrrcccchhhhlllliiiisssstttt command to specify a
  183.                different list.  Use the sssseeeetttt aaaallllllll command to display the list.
  184.                (Default = value from hostname, /etc/resolv.conf or
  185.                LOCALDOMAIN, abbreviation = do)
  186.  
  187.  
  188.  
  189.  
  190.                                                                         PPPPaaaaggggeeee 3333
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197. NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))                                                      NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))
  198.  
  199.  
  200.  
  201.           ssssrrrrcccchhhhlllliiiisssstttt====_n_a_m_e_1/_n_a_m_e_2/...
  202.                Change the default domain name to _n_a_m_e_1 and the domain search
  203.                list to _n_a_m_e_1, _n_a_m_e_2, etc. A maximum of 6 names separated by
  204.                slashes (/) can be specified.  For example,
  205.                    set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
  206.                sets the domain to lcs.MIT.EDU and the search list to the three
  207.                names.  This command overrides the default domain name and
  208.                search list of the sssseeeetttt ddddoooommmmaaaaiiiinnnn command.  Use the sssseeeetttt aaaallllllll command
  209.                to display the list.
  210.                (Default = value based on hostname, /etc/resolv.conf or
  211.                LOCALDOMAIN, abbreviation = srchl)
  212.  
  213.           [[[[nnnnoooo]]]]ddddeeeeffffnnnnaaaammmmeeee
  214.                If set, append the default domain name to a single-component
  215.                lookup request (i.e., one that does not contain a period).
  216.                (Default = defname, abbreviation = [no]def)
  217.  
  218.           [[[[nnnnoooo]]]]sssseeeeaaaarrrrcccchhhh
  219.                If the lookup request contains at least one period but doesn't
  220.                end with a trailing period, append the domain names in the
  221.                domain search list to the request until an answer is received.
  222.                (Default = search, abbreviation = [no]sea)
  223.  
  224.           ppppoooorrrrtttt====_v_a_l_u_e
  225.                Change the default TCP/UDP name server port to _v_a_l_u_e.
  226.                (Default = 53, abbreviation = po)
  227.  
  228.           qqqquuuueeeerrrryyyyttttyyyyppppeeee====_v_a_l_u_e
  229.           ttttyyyyppppeeee====_v_a_l_u_e
  230.                Change the type of information query to one of:
  231.  
  232.                A         the host's Internet address.
  233.  
  234.                CNAME     the canonical name for an alias.
  235.  
  236.                HINFO     the host CPU and operating system type.
  237.  
  238.                MINFO     the mailbox or mail list information.
  239.  
  240.                MX        the mail exchanger.
  241.  
  242.                NS        the name server for the named zone.
  243.  
  244.                PTR       the host name if the query is an Internet address,
  245.                          otherwise the pointer to other information.
  246.  
  247.                SOA       the domain's ``start-of-authority'' information.
  248.  
  249.                TXT       the text information.
  250.  
  251.  
  252.  
  253.  
  254.  
  255.                                                                         PPPPaaaaggggeeee 4444
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262. NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))                                                      NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))
  263.  
  264.  
  265.  
  266.                UINFO     the user information.
  267.  
  268.                WKS       the supported well-known services.
  269.  
  270.                Other types (ANY, AXFR, MB, MD, MF, NULL) are described in the
  271.                RFC-1035 document.
  272.                (Default = A, abbreviations = q, ty)
  273.  
  274.           [[[[nnnnoooo]]]]rrrreeeeccccuuuurrrrsssseeee
  275.                Tell the name server to query other servers if it does not have
  276.                the information.
  277.                (Default = recurse, abbreviation = [no]rec)
  278.  
  279.           rrrreeeettttrrrryyyy====_n_u_m_b_e_r
  280.                Set the number of retries to _n_u_m_b_e_r. When a reply to a request
  281.                is not received within a certain amount of time (changed with
  282.                sssseeeetttt ttttiiiimmmmeeeeoooouuuutttt), the timeout period is doubled and the request is
  283.                resent. The retry value controls how many times a request is
  284.                resent before giving up.
  285.                (Default = 4, abbreviation = ret)
  286.  
  287.           rrrrooooooootttt====_h_o_s_t
  288.                Change the name of the root server to _h_o_s_t. This affects the
  289.                rrrrooooooootttt command.
  290.                (Default = ns.internic.net., abbreviation = ro)
  291.  
  292.           ttttiiiimmmmeeeeoooouuuutttt====_n_u_m_b_e_r
  293.                Change the initial timeout interval for waiting for a reply to
  294.                _n_u_m_b_e_r seconds. Each retry doubles the timeout period.
  295.                (Default = 5 seconds, abbreviation = ti)
  296.  
  297.           [[[[nnnnoooo]]]]vvvvcccc
  298.                Always use a virtual circuit when sending requests to the
  299.                server.
  300.                (Default = novc, abbreviation = [no]v)
  301.  
  302.           [[[[nnnnoooo]]]]iiiiggggnnnnoooorrrreeeettttcccc
  303.                Ignore packet truncation errors.
  304.                (Default = noignoretc, abbreviation = [no]ig)
  305.  
  306. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  307.      If the lookup request was not successful, an error message is printed.
  308.      Possible errors are:
  309.  
  310.      Timed out
  311.           The server did not respond to a request after a certain amount of
  312.           time (changed with sssseeeetttt ttttiiiimmmmeeeeoooouuuutttt====_v_a_l_u_e) and a certain number of
  313.           retries (changed with sssseeeetttt rrrreeeettttrrrryyyy====_v_a_l_u_e).
  314.  
  315.      No response from server
  316.           No name server is running on the server machine.
  317.  
  318.  
  319.  
  320.  
  321.                                                                         PPPPaaaaggggeeee 5555
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328. NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))                                                      NNNNSSSSLLLLOOOOOOOOKKKKUUUUPPPP((((1111CCCC))))
  329.  
  330.  
  331.  
  332.      No records
  333.           The server does not have resource records of the current query type
  334.           for the host, although the host name is valid.  The query type is
  335.           specified with the sssseeeetttt qqqquuuueeeerrrryyyyttttyyyyppppeeee command.
  336.  
  337.      Non-existent domain
  338.           The host or domain name does not exist.
  339.  
  340.      Connection refused
  341.      Network is unreachable
  342.           The connection to the name or finger server could not be made at the
  343.           current time.  This error commonly occurs with llllssss and ffffiiiinnnnggggeeeerrrr
  344.           requests.
  345.  
  346.      Server failure
  347.           The name server found an internal inconsistency in its database and
  348.           could not return a valid answer.
  349.  
  350.      Refused
  351.           The name server refused to service the request.
  352.  
  353.      Format error
  354.           The name server found that the request packet was not in the proper
  355.           format.  It may indicate an error in _n_s_l_o_o_k_u_p.
  356.  
  357.  
  358. FFFFIIIILLLLEEEESSSS
  359.      /etc/resolv.conf               initial domain name and name server
  360.      addresses.
  361.      $HOME/.nslookuprc              user's initial options.
  362.      /usr/share/misc/nslookup.help  summary of commands.
  363.  
  364. EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  365.      HOSTALIASES    file containing host aliases.
  366.      LOCALDOMAIN    overrides default domain.
  367.  
  368. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  369.      resolver(3), resolver(4), named(1M),
  370.      RFC-1034  ``Domain Names - Concepts and Facilities''
  371.      RFC-1035  ``Domain Names - Implementation and Specification''
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.                                                                         PPPPaaaaggggeeee 6666
  388.  
  389.  
  390.  
  391.